package cn.rengy.auth.pathtree;

import cn.rengy.lang.ResultEntity;

import java.util.Collection;
import java.util.List;

public class UriTree {

    private static final PathTree root=new PathTree();

    public static ResultEntity<PathTree.MatchResult, List<String>> matchUri(String uri, String method){
        return root.searchUri(uri,method);
    }

    public static void build(Collection<UriPath> paths){
        root.buildTree(paths);
    }

    public static void clear(){
        root.clearTree();
    }


}
